package com.gg.common.mapper;

import com.gg.common.pojo.SCell;

import java.util.List;

public interface SCellMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(SCell record);

    int insertSelective(SCell record);

    SCell selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(SCell record);

    int updateByPrimaryKey(SCell record);

    /**
     *  TODO 查询库存流水号
     * @return String
     * @throws Exception
     */
    String queryMaxStoreId() throws Exception;

    /**
     * TODO 查询安全库存配置单复核
     * @return SCells
     * @throws Exception
     */
    List<SCell> queryInventoryReviewAll() throws Exception;

    /**
     * TODO 安全库存配置查询
     * @return SCells
     * @throws Exception
     */
    List<SCell> queryAll() throws Exception;

    /**
     * TODO 安全库存配置查询变更
     * @return SCells
     * @throws Exception
     */
    List<SCell> searchQueryCheckTag() throws Exception;

    /**
     * 根据产品编号查询产品
     * @param id
     * @return int
     * @throws Exception
     */
    SCell queryByIdProduct(String id) throws Exception;
}